Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added unitless unit and fixed data not plottable for eccentricity jobs #379

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

ChiCheng45
Copy link
Collaborator

Description of work
Added unitless unit and fixed data not plottable for eccentricity jobs

Fixes
Fixes #363

To test
Run the eccentricity job and load up plot. All results should be plottable.

@MBartkowiakSTFC
Copy link
Collaborator

Screenshot 2024-03-20 at 14 05 05

I tried it with weights "equal" and "atomic_weight", but it was not quite right. I will try for other trajectories and see if there is a difference, but there will definitely be some cases where it does not work.

@MBartkowiakSTFC
Copy link
Collaborator

OK, I know what happened: while you defined a 'unitless' unit in the json file, on my computer I already have my own modified unit database. MDANSE checks that the user-level unit database exists, and uses it. It does not check if new units appeared in the main database, and if they should be copied into the user database.

New users will not be affected by this problem, but if we add new units in the future, then the existing users may miss out on it, unless we add a mechanism for synchronising the databases.

Copy link
Collaborator

@MBartkowiakSTFC MBartkowiakSTFC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works, thanks for the changes.

@MBartkowiakSTFC MBartkowiakSTFC merged commit e54f7fe into protos Mar 20, 2024
84 checks passed
@MBartkowiakSTFC MBartkowiakSTFC deleted the chi/ecc-unit-fix branch March 20, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Eccentricity data not plottable
2 participants